﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.AdminPageBase" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- TemplateInfo codeOutsideHTMLIsLocked="true" -->
<ali:Get ID="Order" Object="Order" InnerID="Request.QueryString['ID']" />
<ali:Get ID="Config" Object="InstanceConfig" Operation="GetBasicSettings()" />
<ali:Get ID="Balance" Mark="Member" Object="Deposit" Operation="GetBalance((Guid)Order[MemberID])" />
<base target="_self" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Expires" content="Mon,1 Fab 1979 23:36:05 GMT" />
<title>付款</title>
<link rel="stylesheet" type="text/css" href="<%=CommonPath%>jquery/themes/lightness/all.css" />
<ali:Comment><link rel="stylesheet" type="text/css" href="../../S01/CHS/css/common.css" /></ali:Comment>
<link rel="stylesheet" href="<%=CssPath%>common.css" />
<script type="text/javascript">
var _page = "pay";
var _webPath = "<%=WebPath%>";
var _id = <%=Request.QueryString["ID"]%>;
var _orderID = "<%=Order[ID]%>";
var _amount = <%=Convert.ToDecimal(Order[Sum]) - Convert.ToDecimal(Order[HasPayed])%>;
var _balance = <%=Balance%>;
var _autoOrder = <%=Convert.ToString(Config[AutoOrder]).ToLower()%>;
var _isLocked = <%=Convert.ToString(User["IsLocked"]).ToLower()%>;
var _lang_locked = "你被锁定，不能操作！";
var _lang_pay_complete = "付款完成！";
var _lang_pay_fail = "付款失败！";
var _lang_making_payment = "正在生成收款单...";
var _lang_make_payment_fail = "生成收款单失败！";
var _lang_balance_not_enough = "预存款不够！";
var _lang_working = "正在操作...";
var _lang_operation_success = "操作成功！";

<%If Convert.ToBoolean(Config[AutoOrder])%>
	var _productIndex = 0;
	var _products = new Array();
	<ali:List Object="Order.Detail" Condition="OrderID=Order[ID] and ParentID IS NULL and IsPresent=false and (Kind='AutoSite' or Kind='Host' or Kind='WebSite')">
		<ali:Record>
			_products[_products.length] = new Object();
			_products[_products.length - 1].ID = "<%=ID%>";
			_products[_products.length - 1].InnerID = <%=InnerID%>;
			_products[_products.length - 1].Amount = <%=Amount%>;
		</ali:Record>
	</ali:List>
var _lang_delivering = "正在操作...<" + "div style='line-height:22px;color:#F00'>这一过程可能需要几分钟时间，千万不要关闭窗口，请耐心等待...</" + "div>";
var _lang_deliver_fail = "发货失败！";
var _lang_making_delivery = "正在生成发货单...";
var _lang_make_delivery_fail = "生成发货单失败！";
<%EndIf%>
</script>
</head>
<body>
<div class="Block">
	<ul class="Title">
		<li class="Left"></li>
		<li class="Middle">付款</li>
		<li class="Right"></li>
	</ul>
	<form action="">
		<table border="0" cellpadding="4" cellspacing="1">
			<tfoot>
				<tr>
					<td colspan="2">
						<input type="submit" value="付款" />
					</td>
				</tr>
			</tfoot>
			<tbody>
				<tr>
					<th width="120">订单号：</th>
					<td><%=Order[Number]%></td>
				</tr>
				<tr>
					<th>应付金额：</th>
					<td><%=Convert.ToDecimal(Order[Sum]) - Convert.ToDecimal(Order[HasPayed])%></td>
				</tr>
				<tr>
					<th>已付金额：</th>
					<td><%=Order[HasPayed]%></td>
				</tr>
				<tr>
					<th>预存款：</th>
					<td><%=Balance%></td>
				</tr>
				<tr>
					<th>备注：</th>
					<td><textarea name="Memo" cols="40" rows="6" class="Text"></textarea></td>
				</tr>
			</tbody>
		</table>
	</form>
	<div class="Footer"></div>
</div>
<script type="text/javascript" src="<%=CommonPath%>jquery/core.js"></script>
<script type="text/javascript" src="<%=CommonPath%>jquery/ui.js"></script>
<script type="text/javascript" src="<%=CommonPath%>utility.js"></script>
<%If PageLang == "UYG" || PageLang == "KZA" || PageLang == "KGA"%>
	<script type="text/javascript" src="<%=CommonPath%>IlgharIme.js"></script>
<%EndIf%>
<script type="text/javascript" src="<%=JsPath%>common.js"></script>
<script type="text/javascript" src="<%=JsPath%>host.js"></script>
</body>
</html>